package org.bingo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author CY
 * @since 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BingoPostComment对象", description="")
@NoArgsConstructor
@AllArgsConstructor
public class BingoPostComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "贴文评论id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "贴文id")
    private String postsId;

    @ApiModelProperty(value = "评论贴文的用户id")
    private String usreId;

    @ApiModelProperty(value = "父评论id,存在父评论时值为父评论id,否则为-1")
    private String parentId;

    @ApiModelProperty(value = "评论的内容")
    private String content;

    @ApiModelProperty(value = "评论日期")
    private Date time;

    @ApiModelProperty(value = "评论点赞数，初始值为0")
    private Integer like;

    @ApiModelProperty(value = "评论倒赞次数，初始值为0")
    private Integer dislike;


}
